<%-- 
    Document   : crearEmpresa
    Created on : 3/05/2010, 12:31:12 PM
    Author     : Damc
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%
//borra el cache de la pag
response.setHeader( "Pragma", "no-cache" );
response.addHeader( "Cache-Control", "must-revalidate" );
response.addHeader( "Cache-Control", "no-cache" );
response.addHeader( "Cache-Control", "no-store" );
response.setDateHeader("Expires", 0);

String error= (String) request.getAttribute("error");
if(error==null){
    error="todo va bien";
}
%>
<html>
    <head>
        <link href="pagina.css" rel="stylesheet" type="text/css" />
        <script src="js/Encriptacion.js" type="text/javascript"></script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>PubliFacil: Publicidad para todos</title>
    </head>
    <body>
        <jsp:include page="pag/cabe.jspf"/>
        <jsp:include page="pag/izq.jsp"/>

        <div id="central" class="clear-block">
            <form name="registro" method="post" action="ControlUsuario" onsubmit="document.registro.pass1.value = hex_md5(document.registro.pas1.value);document.registro.pass2.value = hex_md5(document.registro.pas2.value);">
                <input type="hidden" name="request" value="crear">
                <input type="hidden" name="rol" value="2">
                <div align="center">
                    <h3>Informacion de Personal</h3>
                    Una vez creada su cuenta puede iniciar secion y comenzar a poner su publicidad
                    (Todos los campos son obligatorios)
                </div>
                <div align="center">
                    <table align="center">
                        <tbody>
                            <tr>
                                <td>Login:</td>
                                <td><input name="idusuario" type="text" maxlength="45" value=""></td>
                            </tr>
                            <tr>
                                <td>Nombre:</td>
                                <td><input name="nombre" type="text" maxlength="45" value=""></td>
                            </tr>
                            <tr>
                                <td>Apellido:</td>
                                <td><input name="apellido" type="text" maxlength="45" value=""></td>
                            </tr>
                            <tr>
                                <td>E-mail:</td>
                                <td><input name="mail" type="text" maxlength="45" value=""></td>
                            </tr>


                            <tr>
                                <td>Contraseña:</td>
                                <td>
                                    <input type="hidden" name="pass1" value="">
                                    <input name="pas1" type="password" maxlength="45" value="">
                                </td>
                            </tr>
                            <tr>
                                <td>Repita la contraseña:</td>

                                <td>
                                    <input type="hidden" name="pass2" value="">
                                    <input name="pas2" type="password" maxlength="45" value="">
                                </td>
                            </tr>

                        </tbody>
                    </table>
                    <input name="boton" type="submit" value="crear cuenta" align="center">
                    <br>
                    <%=error%>
                </div>
            </form>
        </div>
        <jsp:include page="pag/rede.jspf"/>
    </body>
</html>